<?php 

echo CHtml::tag('div',array('data-techid'=>$tech->id,'class'=>'board-item','id'=>'right-'.$tech->id),false,false);                
    echo CHtml::tag('a',array('target'=>'_blank','href'=>$this->createUrl('dispatchdetails/update',array('dispatch'=>$tech->dispatch))),false,false);
        $this->renderPartial('_dispatchinfo',array(
            'tech'=>$tech,
            'linkId'=>'right-'.$tech->id
        ));
        echo CHtml::hiddenField('id',$tech['id']);
        echo CHtml::image(getImage($tech['status'].'.png', 'images', 25, 25), $tech->status);
        $locname="";
        if(isset($tech->dispatchModel->location)){
             $locname=$tech->dispatchModel->location->locname.', '.$tech->dispatchModel->location->zip;         
         }
	$dept = isset($tech->dispatchModel->department)?$tech->dispatchModel->department:'';
         $image = $tech->mobile == 1 || $tech->complete == 'Y'?'<img src="images/mobile.png" width="10px" style="width:10px;">':'';
            echo CHtml::tag('span',array(),
                    '<span>'.$image . $tech->dispatch.' - '.trim(substr($dept,0,4)).'</span>'.
                    "<br/>".
                    $locname);
            
    echo CHtml::closeTag('a');
echo CHtml::closeTag('div');
?>
